﻿#ifndef __DEF_H__
#define __DEF_H__

#include <QObject>
#include <QtQml>

namespace FilSheetType {
    Q_NAMESPACE
    enum Position {
        Left = 0x0000,
        Top = 0x0001,
        Right = 0x0002,
        Bottom = 0x0004,
    };
    Q_ENUM_NS(Position)
    QML_NAMED_ELEMENT(FilSheetType)
}

namespace FilPageType {
    Q_NAMESPACE
    enum LaunchMode {
        Standard = 0x0000,
        SingleTask = 0x0001,
        SingleTop = 0x0002,
        SingleInstance = 0x0004
    };
    Q_ENUM_NS(LaunchMode)
    QML_NAMED_ELEMENT(FilPageType)
}

namespace FilContentDialogType {
    Q_NAMESPACE
    enum ButtonFlag {
        NeutralButton = 0x0001,
        NegativeButton = 0x0002,
        PositiveButton = 0x0004
    };
    Q_ENUM_NS(ButtonFlag)
    QML_NAMED_ELEMENT(FilContentDialogType)
}

namespace FilWindowType {
    Q_NAMESPACE
    enum LaunchMode { Standard = 0x0000, SingleTask = 0x0001, SingleInstance = 0x0002 };
    Q_ENUM_NS(LaunchMode)
    QML_NAMED_ELEMENT(FilWindowType)
}

#endif // __DEF_H__
